package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.controller.vo.EnterpriseSupervisionDealVo;
import io.renren.modules.generator.controller.vo.EnterpriseSupervisionReportVo;
import io.renren.modules.generator.controller.vo.EnterpriseSupervisionVerifyVo;
import io.renren.modules.generator.entity.EnterpriseSupervisionRecordEntity;
import io.renren.modules.generator.entity.EnterpriseSupervisionRecordInfoEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 企业监管记录表
 *
 * @author zd
 * @date 2020-09-21 22:05:44
 */
public interface EnterpriseSupervisionRecordService extends IService<EnterpriseSupervisionRecordEntity> {

    /**
     * 巡检列表分页
     * @param params
     * @param type
     * @return
     */
    PageUtils queryPage(Map<String, Object> params,int roleType,int type,int checkType,String keyword);

    /**
     * 根据ID获取详情
     * @return
     */
    EnterpriseSupervisionRecordInfoEntity info(String id);

    /**
     * 巡检上报
     * @param vo
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    void report (EnterpriseSupervisionReportVo vo);

    /**
     * 安全员处理
     * @param vo
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    void deal (EnterpriseSupervisionDealVo vo);

    /**
     * 网格员，安全专家核实
     * @param vo
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    void verify (EnterpriseSupervisionVerifyVo vo);
}

